package com.cmas.manage.mapper;

import com.cmas.manage.domain.Activity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cmas.manage.vo.CountDataVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 活动Mapper接口
 *
 * @author cmas
 * @date 2021-05-03
 */
public interface ActivityMapper extends BaseMapper<Activity> {

    List<Activity> queryListVo(Activity activity);

    @Select("select count(*) from activity")
    Integer actCount();

    List<CountDataVo> cActCount();

    List<Long> selectPrizeDeptId(String actResult);
}
